package com.demo.mapper;

import com.demo.po.ServerPo;

import java.sql.SQLException;
import java.util.List;

/**
 * ServerMapper.java
 **/

public interface ServerMapper extends ISqlMapper {

    public int countServers(ServerPo cond) throws SQLException;

    public List<ServerPo> findServersByPage(ServerPo cond) throws SQLException;

    public List<ServerPo> findAllServers(ServerPo cond) throws SQLException;

    public ServerPo getServer(Integer serverid) throws SQLException;

    public Integer addServer(ServerPo obj) throws SQLException;

    public int updateServer(ServerPo obj) throws SQLException;

    public int updateServerByIdx(ServerPo obj) throws SQLException;

    public int deleteServer(Integer serverid) throws SQLException;

}
